#ifndef __TIMER_H
#define __TIMER_H
#include "sys.h"

#define LED0_PWM_VAL TIM14->CCR1    

#define PWM_DAC_VAL  	TIM9->CCR2  

#define LCD_BLPWM_VAL   TIM12->CCR2 		

void TIM3_Int_Init(u16 arr,u16 psc);
void TIM3_Stop(void);
void TIM14_PWM_Init(u32 arr,u32 psc);
void TIM5_CH1_Cap_Init(u32 arr,u16 psc);
void TIM9_CH2_PWM_Init(u16 arr,u16 psc);
void TIM6_Int_Init(u16 arr,u16 psc);	
void TIM7_Int_Init(u16 arr,u16 psc);
void TIM12_CH2_PWM_Init(u16 arr,u16 psc);
#endif

